package cn.fl.system.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.system.condition.SysBkAccInfoQueryCondition;
import cn.fl.system.vo.SysBkAccInfoVO;
import cn.fl.system.vo.SysBkInfoVO;

/**
 * @Description: 银行账号信息表 客户端服务层接口
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 查询对象：select* get*
 * 查询集合：search*
 */
public interface ISysBkAccInfoService {
	
	/**
	 * 查询账号可选择的平台  key value
	 * @param orgLvl
	 * @return
	 * @throws BaseException
	 */
	public List<KeyValueVO> searchSysOrgByOrgLvl(Long orgLvl)throws BaseException;
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public SysBkAccInfoVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(SysBkAccInfoVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    //public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(SysBkAccInfoVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    
    /**
     * 不分页查询所有
     * @param page
     * @return
     * @throws BaseException
     */
    public List<SysBkAccInfoVO> searchList(SysBkAccInfoQueryCondition qc)throws BaseException;
    
    /**
     * 账号类型<KEY,VALUE>集合
     * @return <KEY,VALUE>集合
     */
    public List<KeyValueVO> searchBkAccTypCdList()throws BaseException;
    
    /**
     * 获取所有开户行(银行)信息
     * @return
     * @throws BaseException
     */
    public List<SysBkInfoVO> searchOpenBkInfo()throws BaseException;
    /**
     * 启用账号
     * @param id
     * @return
     * @throws BaseException
     */
    public boolean enAbleSysBkAccInfo(Long id) throws BaseException;
    
    /**
     * 禁用账号
     * @param id
     * @return
     * @throws BaseException
     */
    public boolean disAbleSysBkAccInfo(Long id) throws BaseException;
    
    /**
     * 导出银行账号信息
     * @return
     * @throws BaseException
     */
    public String exportBkAcc(List<Long> ids,HttpServletRequest request,HttpServletResponse response) throws BaseException;
    /**
     * 根据cd获取数据字典
     * @param grpCd
     * @return
     */
    public List<KeyValueVO> getKvList(String grpCd);
}
